<template>
  <div class="home">
    <Header/>

 <div class="content" v-if="!shows">  
  <div class="card">
      <div class="titles">
        质押合约提现
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum">当前可提现数量:</div>
            <div class="snum">{{dexcs(cake)||0}} USDT</div>
          </div>
        </div>
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="sinput" >
              <div class="snum">申请提现数量</div>  
             <input type="text" class="input" v-model.trim="bnum" placeholder="0" @input="jsdhNum" >
            </div>
          </div>
        </div>
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="sinput" > 
              <div class="snum">用户地址</div>  
                <input type="text" class="input" v-model.trim="baddres" placeholder="用户地址" > 
            </div>
          </div>
        </div>
      
      </div>
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn" 
          :class="(baddres&&bnum)?'act':''"
          :loading="loading"
          @click="toSetBlance"
          >
          立即申请</van-button
        >
      </div>
    </div>

      <!-- 用户等级 -->
      <div class="card">
      <div class="titles">
        手动升级
      </div>
    <div class="box">
      <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="sinput" > 
              <div class="snum">用户地址</div>  
                <input type="text" class="input" v-model.trim="user" placeholder="用户地址" > 
            </div>
          </div>
        </div>
      <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum"> 用户等级</div>   
            <div class="sinput" >                 
             <van-popover
              v-model="sxshow"
              trigger="click"
              :actions="action"
              :overlay="true"
              @select="onSelect"
              theme="dark"
            >
            <template #reference>
              <div class="txt" v-if="level!=''">{{levelName}}</div>
              <div class="txt" v-else>选择 </div>
            </template>
          </van-popover>
          <van-icon name="arrow-down" color="#46ecf8" @click="sxshow=true"/>
            </div>
          </div>
        </div>
    </div> 
  
    <div class="buttom" >
      <van-button
          type="primary"
          class="btn" 
          :class="(user&&level>=0)?'act':''" 
          :loading="loading"
          @click="toUserLevel()"
          >
          立即设置</van-button
        >
      </div> 
     </div>


       <!-- 分红信息 -->
       <div class="card" v-if="false">
      <div class="titles">
        白名单分红
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum">奖池总额:</div>
            <div class="snum">{{dexc(pool.totalPool)||0}} DAOFA</div>
          </div>
        </div>
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum"> 已发放额：</div>
            <div class="snum">{{dexc(pool.grantPool)||0}} DAOFA</div>
          </div>
        </div> 
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum"> 项目方地址：</div>
            <div class="snum">{{base2|yingcang}}</div>
          </div>
        </div>   
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum"> 白名单数量：</div>
            <div class="snum">{{info.data4||0}} </div>
          </div>
        </div>      
        <!-- <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="sinput" >
              <div class="snum">发放数量</div>  
             <input type="text" class="input" v-model.trim="releaseRate" placeholder="0" >
            </div>
          </div>
        </div>       -->
        <div class="buttom" >
          <van-button
            type="primary"
            class="btn act" 
            :class="info.data4>0?'act':''"
            :loading="loading"          
            @click="toSetEnergy()"
            >
            执行分红</van-button
          >
        </div>
      </div>
      
     </div>

       <!-- 分红信息 -->
       <div class="card" >
      <div class="titles">
        每日挖矿DAOFA产出数量
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
              <div class="snum">原有：</div>  
             <div class="snum">{{wstate?wstate:'0'}} DAOFA</div>
          </div>
        </div>
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="snum">设置数量:</div>
            <div class="sinput" > 
             <input type="text" class="input" v-model.trim="platRatio" placeholder="0" 
             min="0"
            max="9999">
             <span class="txt">DAOFA</span>
            </div>
          </div>
        </div>
      
        <div class="buttom" >
          <van-button
            type="primary"
            class="btn "
            :class="platRatio>0?'act':''" 
            :loading="loading"          
            @click="toSetBaseRewards()"
            >
            保存设置</van-button
          >
        </div>
      </div>
      
     </div>

    

     <!-- 白名单设置 -->
     <div class="card" v-if="false">
      <div class="titles">
        白名单设置
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left">地址</div>
          <div class="right">
            <div class="sinput" >      
             <input type="text" class="input tlket" v-model="token" placeholder="地址" >
             <span class="txt"></span>
            </div>
          </div>
        </div>
        
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn" 
          :class="token?'act':''" 
          :loading="loading"
          @click="toAddlist(token)"
          >
          添加到列表</van-button
        >
      </div> 
      
    </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">   
            <div class="snum">类型：</div>           
            <div class="sinput" >   
             <van-popover
             v-model="sxshow3"
              trigger="click"
              :actions="action3"
              :overlay="true"
              @select="onSelect3"
              theme="dark"
            >
            <template #reference>
              <div class="txt" >{{wenable?'是':'否'}}</div>
            </template>
          </van-popover>   
          <van-icon name="arrow-down" color="#46ecf8"/>
            </div>
          </div>
        </div>
      </div>
    <div class="list">
      <div class="item" v-for="(item,i) in list" :key="i">
        <div class="add">{{item}}</div>
        <div class="rr">
          <div class="ico" @click="delects(i)"><van-icon name="delete" /></div>
        </div>
      </div>
    </div>
    <div class="buttom" >
        <van-button
          type="primary"
          class="btn" 
          :class="(list.length>0)?'act':''" 
          :loading="loading"
          @click="toSetwToken"
          >
          批量添加</van-button
        >
      </div> 
    
     </div>
<!-- 黑名单设置 -->
<div class="card" v-if="false">
      <div class="titles">
        黑名单设置
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left">地址</div>
          <div class="right">
            <div class="sinput" >      
             <input type="text" class="input tlket" v-model="tokens" placeholder="地址" >
             <span class="txt"></span>
            </div>
          </div>
        </div>
      
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn" 
          :class="tokens?'act':''" 
          :loading="loading"
          @click="toAddlists(tokens)"
         
          >
          添加到列表</van-button
        >
      </div> 
    </div>
    <div class="box"  >
    <div class="cont m10">
          <div class="left"></div>
          <div class="right">   
            <div class="snum">类型：</div>           
            <div class="sinput" >   
             <van-popover
             v-model="sxshow4"
              trigger="click"
              :actions="action3"
              :overlay="true"
              @select="onSelect4"
              theme="dark"
            >
            <template #reference>
              <div class="txt" >{{benable?'是':'否'}}</div>
            </template>
          </van-popover>   
          <van-icon name="arrow-down" color="#46ecf8"/>
            </div>
          </div>
        </div>
      </div>
    <div class="list">
      <div class="item" v-for="(item,i) in lists" :key="i">
        <div class="add">{{item}}</div>
        <div class="rr">
          <div class="ico" @click="delectss(i)"><van-icon name="delete" /></div>
        </div>
      </div>
    </div>
    <div class="buttom" >
        <van-button
          type="primary"
          class="btn" 
          :class="(lists.length>0)?'act':''" 
          :loading="loading"
          @click="toSetwTokens"
          >
          批量添加</van-button
        >
      </div>  
     </div>
       <!-- 领取功能 -->
 <div class="card" v-if="false">
      <div class="titles">
      其他设置
      </div>
      <div class="box">       
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :loading="loading"
          @click="toResetRankDay"
          >
          清除每日业绩</van-button
        >
      </div> 
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :loading="loading"
          @click="toCleanDayReward"
          >
          清除每日收益</van-button
        >
      </div> 
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :loading="loading"
          @click="toRewardStatic"
          >
          静态动态</van-button
        >
      </div> 
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :loading="loading"
          @click="toRewardPub"
          >
          公排分红</van-button
        >
      </div> 
      <div class="cont m10">
          <div class="left"></div>
          <div class="right">   
            <div class="snum">当前可提现余额：</div>           
            <div class="sinput" >   
              <div class="txt" >{{cakes||0}} DAOFA</div>
            </div>
          </div>
        </div>
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :loading="loading"
          @click="towTokenD"
          >
          提现合约地址提现</van-button
        >
      </div> 
    
    </div>
     </div>


 <!-- 领取功能 -->
 <div class="card" v-if="false">
      <div class="titles">
      领取功能开启/关闭
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">   
            <div class="snum">当前状态：</div>           
            <div class="sinput" >   
              <div class="txt" >{{wstate?'开启':'关闭'}}</div>
            </div>
          </div>
        </div>
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">   
            <div class="snum">类型：</div>           
            <div class="sinput" >   
             <van-popover
             v-model="sxshow2"
              trigger="click"
              :actions="actions2"
              :overlay="true"
              @select="onSelect2"
              theme="dark"
            >
            <template #reference>
              <div class="txt" >{{nodeType?'开启':'关闭'}}</div>
            </template>
          </van-popover>   
          <van-icon name="arrow-down" color="#46ecf8"/>
            </div>
          </div>
        </div>
        
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :loading="loading"
          @click="toSetWstates"
          >
          设置</van-button
        >
      </div> </div>
     </div>

      <!-- 领取功能 -->
 <div class="card">
      <div class="titles">
        设置凭证接收地址
      </div>
      <div class="box"  >
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">   
            <div class="snum">当前凭证接收地址：</div>           
            <div class="sinput" >   
              <div class="txt bbsl" >{{tjusers||'-/-'}}</div>
            </div>
          </div>
        </div>
        <div class="cont m10">
          <div class="left"></div>
          <div class="right">
            <div class="sinput" > 
              <div class="snum">地址</div>  
                <input type="text" class="input" v-model.trim="tjuser" placeholder="地址" > 
            </div>
          </div>
        </div>
        
      <div class="buttom" >
        <van-button
          type="primary"
          class="btn act" 
          :class="(tjuser)?'act':''" 
          :loading="loading"
          @click="toSetTjuser"
          >
          保存设置</van-button
        >
      </div> </div>
     </div>
     
 <div class="card">
      <div class="titles">授权地址</div>
      <div class="box">
        <div class="link">{{base |yingcang}}</div>     
      </div>      

     </div>



    

   

    


     

  
    
    
      
     

     

     

      
  <Bottom/>
    </div>

    
<!-- 领取 -->
 <!-- <van-popup v-model="lqshow" round :close-on-click-overlay="false">
      <div class="popup">
           <div class="top"> <div class="title">{{$t('m.qrlq')}}</div>
        <img src="../assets/img/gbs.png" alt="" class="close" v-if="!lqloading" @click="lqshow=false"/>
    </div>
        <div class="sqtxt">{{$t('m.ny')}}</div>
          <div class="rbox">
            <div class="num">{{lqNum||0}}</div>
            <div class="txt" >MINC</div>   
            <img src="../assets/img/logo.png" alt=""  srcset="" class="ico">
          </div> 
        <div class="flsz"> 
         <van-button
          :loading="lqloading"
          type="primary"
          @click="scSelect"
          class="btn"
        >
         {{$t('m.lqlj')}}</van-button
        >
        </div>
      </div>
    </van-popup> -->


    <van-popup v-model="shows" round :close-on-click-overlay="false">
      <div class="popup">
        <div class="top"> 
        <div class="title">{{ $t("m.dltt") }}</div></div>
        <div class="txt">{{ $t("m.dlinfo") }}</div>
        <div class="btns" @click="ethConnect">{{ $t("m.dlbtn") }}</div>     
      </div>
    </van-popup>

  </div>
</template>

<script>
import { connectTron,towToken,towTokenD,getBaseReward,toSetBaseReward,
  toSetBlackUser,toSetWhiteUser,toSetUserLevel,toSetNodePool,toResetRankDay,getAdmin,
  toCleanDayReward,toRewardStatic,toRewardPub,toRewardWhite,getWhitePool,getTotalData,toSetWalletA
  ,getWalletA, getCake,getCakes,toSetWstate,getWstate
  }from "@/api/Public";
  
import Header from '../components/header.vue';
import Bottom from '../components/bottom.vue';
import Web3 from 'web3'
export default {
  name: "Home",
  components: {Header,Bottom},
  data() {
    return {

      banner: [ 
        {  "thumb": require('../assets/img/logo.png'),"thumb_en": require('../assets/img/logo.png')},      
      ],  
      total:"",
      totals:'',
      userWallet: "",
      loading:false,
      shows:false,
      xzNum:'',      
      cbbl:"",
      jdcbbl:"",
      cbNum:"",
      yffbNum:'',
      pffdNum:'',
      lqloading:false,
      lqshow:false,
      sqloading:false,
      lqNum:'',
      ndNum:"",
      token:"",
      tokens:"",
      user:'',
      level:"",
      levelName:"",
      nodeTypes:false,
      tjuser:"",
      tjusers:"",
      cake:0,
      cakes:0,
      wstate:0,

      users:"",
      enable:false,
      enables:true,
      list:[],
      lists:[],
      action:[{text:"普通",val:0},{text:"一星",val:1},{text:"二星",val:2},
      {text:"三星",val:3},{text:"四星",val:4},{text:"五星",val:5},{text:"六星",val:6},{text:"七星",val:7},{text:"八星",val:8},{text:"九星",val:8},{text:"十星",val:8}],
      actions:[{text:"添加",val:true},{text:"取消",val:false}],
      actions2:[{text:"开启",val:true},{text:"关闭",val:false}],
      action3:[{text:"是",val:true},{text:"否",val:false}],
      sxshow4:false,
      sxshow3:false,
      sxshow2:false,
      sxshow:false,
      sxshows:false,
      wenable:true,
      benable:true,
      info:"",
      available:0,
      energy:0,
      base:"0xdb81c6d5cB8c7f907b62C12b1DeF7c95AF9B049d",
      base2:"0xdb81c6d5cB8c7f907b62C12b1DeF7c95AF9B049d",
      base3:'0xdb81c6d5cB8c7f907b62C12b1DeF7c95AF9B049d',
      base4:"0xdb81c6d5cB8c7f907b62C12b1DeF7c95AF9B049d",
      base5:"0xdb81c6d5cB8c7f907b62C12b1DeF7c95AF9B049d",
      add:'',
      num:'',
      userRatio:'',
      platRatio:'',

     
      action6:[{text:"增加",val:'1'},{text:"减少",val:'2'}],
      sxshow6:false,
      sxshow7:false,
      notype:1,
      notype2:1,
      infos:"",
      jtcbNum:'',
      grjtslNum:'',
      nodeType:false,
      add1:'',
      add2:'',
      addlist:[],
      addlv:'',
      addlvList:[],
      levels:"",
      levelNames:"",
      baddres:'',
      bnum:"",
      baddress:"",
      bnums:"",      
      prNum:"",
      minIn:'',
      cont1:"",
      cont2:"",
      cont3:"",
      cont4:"",
      feew:"",
      userInfo:"",
      pool:'',
      ratio1:'',
      ratio2:"",
      ratio3:"",
      ratio4:'',
      ratio5:"",
      ratio6:"",
      ratio7:"",
      price:"",
      energ:'',
      cenables:"",
      taddress:"",
      sxshow5:false,
      energies:'',
      releaseRates:'',
      releaseRate:"",



      
    };
  },
  filters: {
    yingcang(val) {
      if (val) {
        let a = val.replace(/(\w{12})\w+(\w{12})/, "$1******$2");       
        return a;
      } else {
        return "...";
      }
    },
    time(time){
      if(time){
        var reg = /^(\d{4})-(\d{1,2})-(\d{1,2})\s(\d{1,2})(:(\d{1,2})){2}$/;
        var end = time.match(reg).slice(1,4).join('-');
        return end
      }
    }
  },
   watch: {
    "$store.getters.userWallet": function (val) {
       this.pustadd(val)
    },
     "$store.getters.nlist": function (val) {
      //  console.log(val.length);
       this.mapdata()
    },
    deep: true,
    immediate: true,
  },
  // beforeCreate(){
  //   this.ethConnect()
  // },
  beforeCreate() {
    var i = 0;
    var a = setInterval(() => {
      if (typeof window.ethereum !== "undefined") {
        connectTron().then(
          (info) => {
            clearInterval(a);
            if (info[0]&&info[0].indexOf("0x") == 0) {
              if(this.$store.getters.myFil==info[0]){  
                this.userWallet =  info[0]   
                 this.$store.commit("userWallet", info[0]);   
                this.shows=false
                this.cread(info[0])
                // this.yanzheng(info[0])
              }else{
                this.shows=false     
                this.cread(info[0])          
              }
              //    
              //      
              
            } else {
              // this.$notify("请使用HECO地址登录游戏");
            }
          }
        );
      }
      if (i > 5) {
        this.$notify("钱包失联了！！");
        clearInterval(a);
      }
      console.log(i);
      i++;
    }, 1000);
  },
    mounted() {
    // 监听页面刷新事件
    window.addEventListener('beforeunload', this.handleBeforeUnload);
    window.addEventListener('load', this.handlePageLoad);
  },
   beforeDestroy() {
    // 组件销毁前移除事件监听
    window.removeEventListener('beforeunload', this.handleBeforeUnload);
    window.removeEventListener('load', this.handlePageLoad);
  },
  created() { 
      this.userWallet = this.$store.getters.userWallet;     
  },
  computed: {
    dqyy() {
      if (this.$store.getters.language) {
        return this.$store.getters.language;
      } else {
        return "en-US";
      }
    },  
  },
  methods:{
    jsdhNum(){
      setTimeout(() => {
        this.bnum=this.cake-this.bnum>0?this.bnum:this.cake
      }, 100);
    },
    toUserLevel(){
      if(this.user&&this.level>=0){
        this.loading=true
        toSetUserLevel(this.userWallet,this.user,this.level).then(res=>{
          this.loading=false
          if(res){
            this.user=''
            this.level=''
            this.levelName=""
            this.$notify({
                message:'设置成功' ,
                type: "success",
              });
          }
        })
      }
    },
    cread(val) {
      this.userWallet = val||this.$store.getters.userWallet;    
      if(this.userWallet){  
        this.loading=true  
        // this.getPoll()  
        this.getTjuser()  
        this.getmyCakes()  
        this.getmyCake()
        this.getBaseRewards()
        this.loading=false
        getTotalData().then(res=>{    
          console.log(res,'total');
          this.info=Object.assign({},res)
          this.loading=false
        })
        
      }else{
        this.shows=true
      }
    },
    toSetwToken(){     
      if(this.list.length>0){
        this.loading=true
        toSetWhiteUser(this.userWallet,this.list,this.wenable).then(res=>{          
          this.loading=false
          if(res){
            this.list=[]
            this.token=""
            this.wenable=""
            this.$notify({
                message:'设置成功' ,
                type: "success",
              });
          }
        })
      }
    },
    getmyCake(){
      getCake().then(res=>{
        console.log(res);
        this.cake=res
      })
    },
    getmyCakes(){
      getCakes().then(res=>{
        console.log(res);
        this.cakes=res
      })
    },
    toSetwTokens(){     
      if(this.lists.length>0){
        this.loading=true
        toSetBlackUser(this.userWallet,this.lists,this.benable).then(res=>{
          this.loading=false
          if(res){
            this.lists=[]
            this.tokens=""
            this.benable=""
            this.$notify({
                message:'设置成功' ,
                type: "success",
              });
          }
        })
      }
    },
   
    getPoll(){
      getWhitePool().then(res=>{
        console.log('rpooles',res);
        this.pool=Object.assign({},res)
      })
    },


    
 dexc(val){
 if(val){
  let  ethereum = window.ethereum
 let web3s = new Web3(ethereum);
  let amount=  web3s.utils.fromWei(val +'', 'ether'); 
  // let num =val/Math.pow(10,18)
  return val?  Math.round(amount*1000000)/1000000:'0'
 }else{
  return 0
 }
 },
 dexcs(val){
  return val?  Math.round(val*1000000)/1000000:'0'
 },
 getRightVal(val) {
      // 不合法类型、0、负数返回0     
      if(val <= 0) {
        return 0;
      }
      if(val > 100) {
        return 100;
      }
      val = parseInt(val);
      if(isNaN(val)) {
        return 0;
      }
      return val;
    },
 toSetEnergy(){
      if(this.info.data4>=0){
        this.loading=true
        toRewardWhite(this.userWallet).then(res=>{
          this.loading=false
          if(res){
            this.getPoll()
            this.$notify({
                message:'发放成功' ,
                type: "success",
              });
          }
        })
      }
    },

    toSetBlance(){
  if(this.baddres&&this.bnum>0){
  this.loading=true
  towToken(this.userWallet,this.baddres,this.bnum).then(res=>{
    this.loading=false
    if(res){
      this.baddres=""
      this.bnum=""
      this.getmyCake()
      this.$notify({
                message:'提现成功' ,
                type: "success",
              });
    }
  })
}
 },

 toResetRankDay(){
  this.loading=true
      toResetRankDay(this.userWallet).then(res=>{        
        this.loading=false
        if(res){
          this.$notify({
                message:'设置成功' ,
                type: "success",
              });
        }
      })
    },
    toCleanDayReward(){
      this.loading=true
      toCleanDayReward(this.userWallet).then(res=>{        
        this.loading=false
        if(res){
          this.$notify({
                message:'设置成功' ,
                type: "success",
              });
        }
      })
    },
    toRewardStatic(){
      this.loading=true
      toRewardStatic(this.userWallet).then(res=>{
        this.loading=false
        if(res){
          this.$notify({
                message:'设置成功' ,
                type: "success",
              });
        }
      })
    }, 
    toRewardPub(){
      this.loading=true
      toRewardPub(this.userWallet).then(res=>{
        this.loading=false
        if(res){
          this.$notify({
                message:'操作成功' ,
                type: "success",
              });
        }
      })
    },
    towTokenD(){
      this.loading=true
      towTokenD(this.userWallet).then(res=>{
        this.loading=false
        if(res){
          this.getmyCakes()
          this.$notify({
                message:'提现成功' ,
                type: "success",
              });
        }
      })
    },
    toSetBaseRewards(){
      if(this.platRatio>0){
      this.loading=true
      toSetBaseReward(this.userWallet,this.platRatio).then(res=>{
        this.loading=false
        if(res){
          this.getBaseRewards()
          this.$notify({
                message:'设置成功' ,
                type: "success",
              });
        }
      })
    }
    },
    getBaseRewards(){
      getBaseReward().then(res=>{
        this.wstate=res
      })
    },
    toSetRatio(){   
      this.userRatio=this.userRatio?this.userRatio:this.pool.userRatio  
      this.platRatio=this.platRatio?this.platRatio:this.pool.platRatio   
      if(this.platRatio&&this.userRatio){
      this.loading=true        
      toSetNodePool(this.userWallet,this.userRatio,this.platRatio).then(res=>{
        this.loading=false
        if(res){
          this.userRatio=""
          this.platRatio=""
          this.$notify({
                message:'设置成功' ,
                type: "success",
              });
        }
      })
      
    }
    },

 toSetTjuser(){
  if(this.tjuser){
  this.loading=true
  toSetWalletA(this.userWallet,this.tjuser).then(res=>{
    this.loading=false
    if(res){
      this.getTjuser()
      this.tjuser=""
      this.$notify({
                message:'设置成功' ,
                type: "success",
              });
    }
  })
}
    },
    getTjuser(){
      getWalletA().then(res=>{
      this.tjusers=res
      })
      getAdmin().then(res=>{
        console.log(res);
        // this.base=res
      })
    },

 onSelect(e){
      this.level=e.val,
      this.levelName=e.text    
      this.sxshow=false
    },
    onSelect2(e){
      this.nodeType=e.val
      this.sxshow2=false
    },

    onSelect3(e){
      this.wenable=e.val
      this.sxshow3=false
    },
    onSelect4(e){
      this.benable=e.val
      this.sxshow6=false
    },

    toAddlist(token){
      this.token=""
      // this.list.push(token)
      let set = new Set( this.list);
      set.add(token);
      this.list = Array.from(set);
    },
    delects(i){
      this.$delete(this.list,i)
    },
    toAddlists(token){
      this.tokens=""
      // this.lists.push(token)
      let set = new Set( this.lists);
      set.add(token);
      this.lists = Array.from(set);
    },
    delectss(i){
      this.$delete(this.lists,i)
    },


















   

 




  
  
   
   

    toLqShow(num,t){
      this.lqNum=num
      this.lqType=t
      this.lqshow=true
    },
      handlePageLoad() {
      // 页面刷新后的逻辑
      console.log('页面已经刷新');
      //  this.vshow=true
    },
 
    toSetEnergyClose(){
      return
      if(this.taddress){
        this.loading=true
        toSetEnergyClose(this.userWallet,this.taddress,this.nodeType).then(res=>{
          this.loading=false
          if(res){
            this.$notify({
                message:'设置成功' ,
                type: "success",
              });
          }
        })
      }
    },
  

    onCopy() {
      this.$toast(this.$i18n.t("m.fzcg"));
    },
    onError() {
      this.$toast(this.$i18n.t("m.fzsb"));
    },


    ethConnect() {
      console.log(1);
      connectTron().then((info) => {
        if (info[0]&&info[0].indexOf("0x") == 0) {     
          let infos=info[0].toUpperCase()
          if(infos==this.base.toUpperCase()
          ||infos==this.base2.toUpperCase()
          ||infos==this.base3.toUpperCase()
          ||infos==this.base4.toUpperCase()   
          ||infos==this.base5.toUpperCase()        
          ){     
           this.shows=false      
           this.cread(info[0])
           this.$store.commit("userWallet", info[0]);     
           this.$store.commit("myFil", info[0]);        
          }else{
            this.$toast("您没有登录权限！");
          }
        } else {
          // this.$toast(this.$i18n.t("m.qsydzdl"));
        }
      });
    },
    pustadd(info){     
      this.$store.commit("userWallet", info); 
    },


   
  
   
    async toPage(val) {    
     if(this.$store.getters.userWallet){
       this.$router.push({ path: val });
      }else{
        this.shows=true
      }
    },
  


    toGetUser(){
      if(this.add1){
        this.loading=true
        getUser(this.add1).then(res=>{
          this.loading=false
          if(res){
            console.log(res);
            this.userInfo=Object.assign({},res)
            this.userInfo.address=this.add1
          }
        })
      }
    },
    toSetPrice(){
      if(this.prNum>0){
        this.loading=true
        let num= Math.round(1/this.prNum*100000)/100000
        console.log(num);
        toSetPrice(this.userWallet,num).then(res=>{
          this.loading=false
          if(res){
            this.prNum=""
            this.getPrice()
            this.$notify({
                message:'设置成功' ,
                type: "success",
              });
          }
        })
      }
    },
    getPrice(){
      getPrice(this.userWallet).then(res=>{
        this.price= Math.round(1/res*1000000)/1000000
      })
    },


    toSetEnergyTranferState(){     
        this.loading=true
        toSetEnergyTranferState(this.userWallet,this.cenables).then(res=>{
          this.loading=false
          if(res){
            this.$notify({
                message:'设置成功' ,
                type: "success",
              });
          }
        })
    },

   
  },
};
</script>

<style lang="scss" scoped>
@import "../../src/assets/scss/_handle.scss";
$t-f: "DINAlternate-Bold";

.home {
  background: #00030c;
  background-size:contain;
  background-position: center bottom;
  overflow-x: hidden;
  width: 750px;
  margin: 0 auto;
  .mtop {
    margin: 140px 10px 0;
    padding: 10px 30px ;
    color: #fff;
   
    border: 1px solid #381b7c;
    .zctime{
      color: #fff;
      text-align: left;
      margin: 20px 0px;
      display: flex;
    align-items: center;
    justify-content: space-between;
    }
    .price {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;

      .txt {
        font-size: 26px;
        color: #ffffff;
        text-align: left;
        margin: 20px 0;
      }
      .num {
        font-size: 36px;
        color: #ffffff;
        margin-right: 10px;

        .dw{
          font-size: 32px;
          color: #ffffff;
          margin-right: 5px;
        }
      }
      .right{ 
        display: flex;
      align-items: flex-end;
      flex-direction: column;
      justify-content: space-between;
        .txt{
          font-size: 26px;
        color: #8d9399;
        text-align: left;
        margin: 20px 0;
        }
        .nums{ font-size: 46px;
        font-family: $t-f;
        font-weight: bold;
        background: linear-gradient(234deg,#e4005e, #b4184c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;}
      }
    }
    .address {
      margin: 28px;
      display: flex;
      align-items: center;
      font-size: 30px;
      font-family: $t-f;
      font-weight: bold;
      color: #ffffff;
      line-height: 28px;
      .fuzhi {
        background: transparent;
        border: none;
      }
      .icon {
        width: 26px;
        height: 26px;
        margin-right: 16px;
      }
    }
    .close {
      position: absolute;
      right: 22px;
      top: 28px;
      img {
        height: 32px;
        width: 32px;
      }
    }
  }

  .sylist{
    display: flex;
    align-items: center;
    padding: 30px;
    justify-content: space-between;
    .boxl{
      background: linear-gradient(-18deg, #ffdf2d, #00e2be);;
      // border-radius: 18px;
      height: 140px;
      width: 45%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      position: relative;  
    }
    .boxr{
      background:rgba(38, 38, 38, 0.48);//#262626 ;
      // border-radius: 18px;
      height: 140px;
      width: 45%; display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center; 
      position: relative;   
    }
    .stl{
      margin: 10px 30px;
      color: #ffffff;
      font-size: 22px;
    }
    .snum{
        margin: 10px 30px;
      color: #ffffff;
      font-size: 26px;
    }
    .flximg{
      position: absolute;
      right: 20px;
      width: 130px;
    }
  }
  
  .mdex{
    font-size: 24px;
    color: #fff;
    background: rgba(0 0 0 / 24%);
    margin: 0 0 20px;
    padding: 20px;
    border-top:1px solid  #6d6d6d
  }
  .my-swipe {
    width: 694px;
    min-height: 360px;
    margin: 10px auto 0;
    .imgs {
      width: 100%;
      height: 100%;
      // border-radius: 20px;
    }
  }
  
  .band {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    height: 199px;
    width: 199px;
    margin: 10px auto;
    animation: rotate 10s linear 0.1s infinite;
    img {
      height: 38px;
      width: 246px;
      margin: 64px auto;
    }
  }

  @keyframes rotate {
    0% {
      opacity: 1;
      transform: rotate(0deg);
    }

    100% {
      opacity: 1;
      transform: rotate(360deg);
    }
  }
  .dark.band {
    // background-image: url("../assets/img/badns.png");
  }
  .content {
  //  background: url("../assets/img/bm/b6.png") ;
    background-size: 100% auto;
    background-position: bottom ;
    margin-top: 18px;
    
    .actives {
      // padding: 56px 0;
    background: #00000070;
    // border-radius: 20px;
    // background-size: cover;
        // border-radius: 30px;
    width: calc( 100%);
    margin: 0 auto;
    .my-swipe1 {
    width: calc( 100% - 20px);
    height: 100%;
    margin: 0 auto;
    // padding: 10px; 
     .imgss {
      width: calc(68%);
      height: auto;
        //  border:2px solid #3bf7ff;
    box-shadow: 0 1px 1px rgb(0 0 0 / 12%), 0 2px 2px rgb(0 0 0 / 12%), 0 4px 4px rgb(0 0 0 / 12%), 0 8px 8px rgb(0 0 0 / 12%), 0 16px 16px rgb(0 0 0 / 12%);
    }
    }
    .notific{
      background: #2A2A2A;
      display: flex;
      align-items: center;
      width: 100%;
      padding: 14px;
      margin-top: -16px;
    z-index: 10;
    position: relative;
      .ico{
        width: 46px;
        height: 46px;
      }
      .txt{
        font-size: 26px;
        color: #ffffff;
        margin-left: 16px;
        margin-bottom: 5px;
      }
      .right{
        flex: 1;
        width: 100%;
        font-size: 28px !important;
      }
    }
    .simg{
      width: 256px;
      height: 256px;
      margin: 20px auto 0;
    }
      .title {
        font-size: 30px;
        font-family: $t-f;
        font-weight: 600;
        @include font_color("font_color2");
        line-height: 54px;
        padding:30px 32px 12px;
      }
      .info {
        width: 600px;
        min-height: 52px;
        font-size: 24px;
        font-weight: 400;
        @include font_color("font_color2");
        line-height: 52px;
        margin: 12px auto 33px;
        text-align: left;
      }
     
      .btngrop{
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .btn {
        width: calc(100% - 40px);
        height: 80px;
        background: #b4184c;
        box-shadow: 0px 4px 16px 4px rgba(62,1,162,1);
        font-size: 32px;
        font-family: $t-f;
        margin:34px 20px;
        font-weight: 600;
        @include font_color("font_color3");
        line-height: 80px;
        text-align: center;        
border: 2px solid rgba(115, 40, 236, 0.5);
font-weight: bold;
      }
      .act{
        background: #290E54;
box-shadow: 0px 4px 16px 4px rgba(62,1,162,1);
border: 2px solid rgba(115, 40, 236, 0.5);
      }
    }
    .card {
      // width: 694px;
      background:#00000070 no-repeat ;      
      // background: #00000070;
      // background: linear-gradient(100deg, #dcc179 0, #603711 49%, #d5b96f 100%);
      background-size: contain;
      background-position: bottom;
          align-items: center;
          border: 1px solid #35dcf7;
      // min-height: 300px;
      padding: 30px 40px;
      margin: 20px 30px 20px;
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      .titles{
        font-size: 28px;
          font-weight: 600;
          color: #ffffff;
          padding-bottom: 30px;
          width: 100%;
          border-bottom: 1px solid #35dcf7;
          .img2{
            width: 100px;
          }
      }
 
      .box{
        width: 100%;
         .link{
            margin:40px 26px 20px;
            font-size: 28px;
            white-space: normal;
            word-break: break-all;
            background: linear-gradient(100deg, #2de8e8 0, #35dcf7 49%, #00d0f3 100%);
            // background: linear-gradient(270deg,#00dbde,#fc00ff);
            // background: linear-gradient(to right, #C373FA, #8DBFEF); /*设置渐变的方向从左到右 颜色从ff0000到ffff00*/
				-webkit-background-clip: text;/*将设置的背景颜色限制在文字中*/
				-webkit-text-fill-color: transparent;/*给文字设置成透明*/
        }
        .tips{
           font-size: 24px;
           color: #ABABAB;
           margin: 40px auto 10px;
          }
        
       
          .line{
            width: 100%;
            height: 1px ;
            background: #353535;
            margin: 10px 0;
          }
          .m10{
            margin: 10px 0;
          }
          .bord{
                border: 1px solid #fc00ff;
                padding: 12px;
          }
          .m10{
            margin-top: 6px;
          }
        .cont{
          display: flex;
          align-items: flex-start;
          justify-content: space-between;
          flex-direction: column;
          .left{
            font-size: 26px;
            color: #FFFFFF;
            opacity: 0.6;
            text-align: left;
            white-space: nowrap;
            margin: 10px 0;

          }
          .cnt{
            // text-align: center;
            width: 100%;
          }
          .right{
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            .sinput{
              width:100%;
              padding: 5px 0px;
              height: 64px;
              // background: #181818;
              display: flex;
              align-items: center;
              justify-content: flex-end;
              cursor: pointer;
              box-sizing: border-box;
            
              .txt{
                color: #ddd7d7;
                margin-right: 16px;
                font-weight: bold;
                font-size:26px;
                white-space: nowrap;
              }
              .bbsl{
                width: 100%;
                white-space: normal;
                word-break: break-all;
                text-align: right;
              }
              .num{
                color: #ffffff;
                font-size: 32px;
                font-weight: bold;
                margin-right: 16px;
              }
            }
            .snum{
                color: #ddd7d7;
                margin-right: 16px;
                font-weight: bold;
                font-size:26px;
                white-space: nowrap;
              }
            .between{
        justify-content: space-between;
      }
          }
          .input{
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: transparent;
            font-size: 26px;
            font-weight: 600;
            height: 64px;
             padding: 8px 20px 8px 0px;
            box-sizing: border-box;    
    color: #ffffff;
    border: none;
    border-bottom: 1px solid #2A2A2A;
    min-width: 100px;
    text-align: right;
            .yinput{
              border: none;
              background: transparent;
              color: #ffffff;
              font-size: 28px;
              font-weight: bold;
            }
            .dw{
              display: flex;
              align-items: center;
              .tt{
                color: #ffffff;
                font-size: 28px;
                font-weight: bold;
                margin:  0 10px;                
                white-space: nowrap;
              }
              .ico{
                width: 40px;
                height: 40px;
              }
            }
          }
          .tlket{
            text-align: left;
          }
          .icos{
            font-size: 18px;
            color: #ffffff;
            .ico{
                width: 40px;
                height: 40px;
                border: 1px solid #ffff;
              }
          }
          .rbox{
            display: flex;
            align-items: center;
            justify-content: center;
            .num{
          //  margin: 22px auto;
        font-size: 38px;
        font-family: $t-f;
        font-weight: bold;
          background: linear-gradient(180deg, #00d5ff, #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        }
            .txt{
              color: #ffffff;
                font-size: 20px;
                // font-weight: bold;
                margin:  0 10px;
            }
            .ico{
              width: 40px;
              height: 40px;
            }
          }

         
          .ibox{
            border: 1px solid #fc00ff ;
            width: 100%;
            margin-top: 40px;
            padding: 30px 40px;
            box-sizing: border-box;
            background: linear-gradient(135.46deg, rgb(11 29 53) 24.8%, rgb(0 0 0 / 50%) 57.07%);
            // background:#00000070 url("../assets/img/sbg.png") no-repeat ; 
            box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);  
            .txts{
              color: #ffffff;
              font-size: 24px;
              margin-bottom: 20px;
            }
          }
          .flex{
                 display: flex;
            align-items: center;
            justify-content: space-between;
          }
          .btnr{
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            .btn{
          background: #2A2A2A;
            color: #ABABAB;
            border: none;
            height: 68px;
            width: 250px;
            font-size: 24px;
            font-weight: bold;
            margin-left: 10px;
          }
        .act{
          color: #ffffff;    
          box-shadow: inset 0px 4px 16px 4px #35dcf7;
          text-shadow: -2px 7px 8px #000000;
          background:linear-gradient(100deg, #2de8e8 0, #56cbdd 49%, #00d0f3 100%);
        }
          }
          .btngroup{
            display: flex;
            align-items: center;
            margin-top: 20px;
            .btns{
              background: linear-gradient(100deg, #dcc179 0, #603711 49%, #d5b96f 100%) ;;
              color: #ffffff;
              border-radius: 56px;
              font-size: 28px;
              height: 52px;
              line-height: 52px;
              flex:1;
              border: 1px solid #2A2A2A;
            }
            .btn{
              background: transparent;
              color: #ffffff;
              font-size: 28px;
              height: 52px;
              line-height: 52px;
              flex:1;
              border: 1px solid #fc00ff;
              // margin-left: 20px;
            }
          }

        }

      .flexrow{
        flex-direction: row;
        align-items: center;
        .right{
          .num{
            color: #ffffff;
                font-size: 24px;
                font-weight: bold;
                margin-right: 16px;
                text-align: right;
                width: 100%;
          }
        }
      }
      }
      .list{
          margin: 32px 10px;
          width: 100%;
          .items{
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            width: 100%;
            flex-direction: column;
            border-radius: 18px;
            margin: 8px 0;
            padding: 10px 0;
            border: 1px solid #353535;
            .addr{
              color: #ffffff;
              font-size: 18px;
              margin: 10px 0;
              width: 100%;
              text-align: left;
            }
          }
          .item{
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid #353535;
            padding: 10px 16px;
            border-radius: 18px;
            min-height: 48px;
            margin: 8px 0;
            overflow: auto;
            .add{
              color: #ffffff;
              font-size: 22px;
              margin-right: 10px;
              white-space: nowrap;
            }
         
            .rr{
              display: flex;
              align-items: center;
            }
            .num{
              color: #ffffff;
              font-size: 22px;
            }
            .ico{
              color: #ffffff;
              font-size: 22px;
              margin-left: 10px;
              cursor: pointer;
            }
          }
          .item::-webkit-scrollbar {
display: none;
}
        }
      .buttom{
        display: flex;
        width: 100%;    
        margin-top: 30px;  
        .btn{
         background: #2A2A2A;
          color: #ABABAB;
          border: none;
          height: 68px;
          width: 100%;
          font-size: 24px;
          font-weight: bold;
        }
        .act{
          color: #ffffff;    
          box-shadow: inset 0px 4px 16px 4px #35dcf7;
          text-shadow: -2px 7px 8px #000000;
          background:linear-gradient(100deg, #2de8e8 0, #56cbdd 49%, #00d0f3 100%);
          margin:0;
        }
      }
        
       

       .imggrop{
          display: flex;
          align-items: center;
          justify-content: center;
          .im1{
            width: 144px;
            height: 144px;
            z-index: 2;
            
          }.im2{
             width: 144px;
            height: 144px;
            margin-left: -60px;
            z-index: 1;
          }
        }
        .ttx{
          font-size: 36px;
          font-family: $t-f;
          font-weight: 600;
          color: #ffffff;
          line-height: 50px;
          text-align: center;
        }
      
        
      .sbot {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex: 1;
        width: 100%;
        text-align: center;
        margin: 24px 0;
          .txt {
            height: 56px;
            font-size: 46px;
            font-family: $t-f;
            font-weight: 600;
            line-height: 54px;
            text-align: center;
            font-size: 56px;
            color: #ffffff;
          }
          .btn {
            background: #ffffff;
            // box-shadow: 0px 4px 16px 4px rgba(207,182,247,1);
            // border-radius: 40px;
            font-size: 32px;
            font-family: $t-f;
            font-weight: 600;
            color: #000000;
            line-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            width: 280px;
height: 80px;
          }
      }
      .title{
        font-size: 36px;
font-family: $t-f;
font-weight: 600;
color: #000000;
line-height: 50px;
text-align: left;
      }
       .lines {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        flex: 1;
        width: 92%;
        text-align: center;
        margin: 37px auto;
        .item {
          text-align: center;
          flex: 1;
          
          .txt1 {
            height: 54px;
            font-size: 28px;
            font-family: $t-f;
            font-weight: bold;
            line-height: 54px;
            text-align: center;
            color: #000000;
            white-space: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
          }
          .txt2 {
            height: 40px;
            font-size: 28px;
            font-family: $t-f;
            font-weight: 600;
            color: #888888;
            line-height: 40px;
            text-align: center;
            margin-top: 18px;
          }
        }
      }
    }
    .title{
      font-size: 38px;
      font-weight: bold;
      color: #ffffff;
      margin: 72px auto;
      border-radius: 36px 0 36px 0;
      width: 360px;
      padding: 22px;
      position: relative;
    }
    .title::after{
      content: "";
      position: absolute;
      height: 4px;
      width: 100px;
      border-radius: 16px;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(100deg, #dcc179 0, #603711 49%, #d5b96f 100%);
    }
   
    .linebox{
      display: flex;
      align-items: center;
      justify-content: space-around;
      .card3{
        flex: 1;
        margin: 10px 28px;
        background:#00000070;//#262626;
        // border-radius: 20px;
            border: 1px solid #381b7c;
        // height: 360px;
            display: flex;
    align-items: center;
    justify-content: center;
         .list {
          flex: 1;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: column;
        margin: 10px 0 10px;
        padding:20px 0;
        position: relative;
        .she{
          position: absolute;
          right: 10px;
          top: 10px;
          height: 45px;
          width: 45px;
        }
        .item {
          flex: 1;
          overflow: hidden;
          .ico{width: 68px;}
            .num {
        margin-top: 22px;
        font-size: 32px;
        font-family: $t-f;
        font-weight: bold;
        background: linear-gradient(100deg, #dcc179 0, #603711 49%, #d5b96f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 58px;
        white-space: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        overflow-y: hidden;
      }
      .tt {
        font-size: 28px;
        font-family: $t-f;
        font-weight: 600;
        color:#ffffff;
        line-height: 40px;
        margin-top: 12px;
      }
          .btn {
           min-width: 280px;         
            background: #000;
            // border-radius: 60px;
            font-size: 32px;
            font-family: $t-f;
            padding: 10px 20px;
            font-weight: 600;
            color: #ffffff;
            margin: 10px auto;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
             border: 1px solid #381b7c;
             background: linear-gradient(100deg, #dcc179 0, #603711 49%, #d5b96f 100%);
            .img{
              height: 32px;
              width: 32px;
              // border-radius: 100%;
              margin-right: 10px;
            }
            .line{
              height: 20px;
              width: 1px;
              background: #b4184c;
              margin:0 20px;
            }
          }
        }
      }
      // .row{
      //   flex-direction: row;
      // }
      }
    }
    .card2 {
      width: 694px;
      height: 100%;
      background:#00000070;// #262626;
      // box-shadow: 0px 4px 16px 8px rgba(227, 224, 224, 0.5);
      // @include box_color("box_color");
          border: 1px solid #381b7c;
      // border-radius: 20px;
      margin: 28px auto;
      padding: 28px 0;
       color:#000;
       
      .ico{
        width: 43px;
        height: 43px;
      }
      .imgroup{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-left: 48px;
        .img{width: 86px;
        height: auto;
          // border-radius: 10px;
        }
      }
      .mytg{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin:0 28px;
      .left{
        display: flex;
        align-items: center;
        .tt{
          margin: 0 10px;
        }
      }
      .right{
       
      }
      }



      .title {
        margin-left: 50px;
        margin-right: 28px;
        height: 66px;
        font-size: 40px;
        font-family: $t-f;
        font-weight: 600;
        color: #ffffff;
        line-height: 66px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: center;       
        .node {
          font-size: 30px;
          font-weight: 600;
          color: #8B8B94;
          line-height: 32px;
        }
      }
      .lmtop{
        display: flex;
        justify-content: space-between;
        padding: 20px 32px;
         color:#000000;
        .left{
          display: flex;
          flex-direction: column;
          align-items: center;
          .ilog{
            height: 56px;
            width: 56px;
          }
          .ttx{
            font-size: 24px;
            font-family: $t-f;
           
          }
        }
        .cont{
          height: 76px;
          width: 76px;
        }
        .right{
           display: flex;
          flex-direction: column;
          align-items: center;
          .ilog{
            height: 56px;
            width: 56px;
          }
          .ttx{
            font-size: 24px;
            font-family: $t-f;
          }
        }
      }
      .sinput{
        border-top: 1px dashed #e9e9e9;
        border-bottom:1px dashed #e9e9e9;
        display: flex;
        height: 100px;
        justify-content: space-between;
        align-items: center;
         padding: 10px 32px;
        .left{
          width: 50%;         
         input{
          border: none;
          text-align: left;
          font-family: $t-f;
          background: transparent;
        }
        }
        .right{
          width: 50%;
         input{
          border: none;
          text-align: right;
          font-family: $t-f;
          background: transparent;
        }
        }
      
      }
      .info{
        padding: 10px 32px;
        .tlt{
          font-size: 22px;
          margin: 20px 0;
        }
        .total{
          display: flex;
          align-items: center;
          justify-content: space-between;

        }
      }
      .tips {
        display: flex;
        align-items: center;
        flex-direction: column;

        .cnum {
          font-size: 28px;
          font-family: $t-f;
          font-weight: 600;
          color: #999999;
          line-height: 40px;
        }
      }

      .cbox{
            margin: 30px;
    padding: 14px 20px;
    position: relative;
    background: #fff;
    box-shadow: inset 0 -2px 8px 0 rgb(51 1 138 / 8%);
    // border-radius: 15px;
    border: 1px solid;
        .tl{
          font-weight: 600;
          font-family: $t-f;
          font-size: 26px;
          text-align: left;
          color: #333;
        }
        .line{
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-weight: 600;
          font-size: 30px;
          font-family: $t-f;
          margin: 40px 10px;
          color:#00023d;
        }

      }

      .num {
        margin-top: 22px;
        font-size: 18px;
        font-family: $t-f;
        font-weight: bold;
        background: linear-gradient(234deg,#e4005e, #b4184c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        // line-height: 58px;
        white-space: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        overflow-y: hidden;
      }
      .tt {
        font-size: 22px;
        font-family: $t-f;
        font-weight: 600;
        color:#ffffff;
        line-height: 40px;
        margin-top: 12px;
      }
      .gree{
        color: #14f714;
      }
      .red{
        color: #ec2832;
      }
      .sitm{
    background: #313131;
    // border-radius: 10px;
    padding: 10px 0 20px;
    margin: 5px;

    .num{
      overflow: hidden;
      white-space: pre-wrap;
      padding: 0 0 0 10px;
    }
      }
      .bottom{
        margin-top: 64px;
         .btn {
            width: 80%;
            height: 80px;
            // background: #b4184c;
            
          background: #a2a2a9;
// box-shadow: 0px 4px 16px 4px rgba(207,182,247,1);
// border-radius: 40px;
            font-size: 32px;
            font-family: $t-f;
            font-weight: 600;
            color: #ffffff;
            line-height: 80px;
            margin: 20px auto;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
         }
         .stbn{
            font-size: 30px;
            font-family: $t-f;
            font-weight: 600;
            color: #8B8B94;
            margin: 10px auto;
            line-height: 34px;
         }
      }
     
      .list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 24px 0;
        .item {
          // flex: 1;
          overflow: hidden;

          .btn {
            min-width: 100px;  
            max-width: 160px;          
            background: #000;
            // border-radius: 60px;
            font-size: 32px;
            font-family: $t-f;
            padding: 10px ;
            font-weight: 600;
            color: #ffffff;
            margin: 0 auto;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            .img{
              height: 32px;
              width: 32px;
              // border-radius: 100%;
              margin-right: 10px;
            }
          }
        }
      }

      .jjc {
        line-height: 52px;
        display: flex;
        justify-content: center;
        span:nth-child(1) {
          font-size: 28px;
          font-family: $t-f;
          font-weight: 600;
          color: #888888;
        }
        span:nth-child(2) {
          font-size: 44px;
          font-family: $t-f;
          font-weight: bold;
          @include font_color("font_color1");
          margin: 0 52px 0 20px;
          max-width: 50%;
          overflow-x: auto;
          display: inline-block;
          overflow-y: hidden;
        }
        span:nth-child(3) {
          font-size: 28px;
          font-family: $t-f;
          font-weight: 600;
          color: #616161;
        }
      }
      .time {
        margin: 52px auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        img {
          height: 42px;
          width: 38px;
          margin-right: 12px;
        }
        div {
          font-size: 44px;
          font-family: $t-f;
          font-weight: bold;
          @include font_color("font_color1");
          line-height: 52px;
        }
      }

      .txt {
        font-size: 28px;
        font-family: $t-f;
        font-weight: 600;
        color: #616161;
        line-height: 40px;
      }

      .bltitle {
        height: 60px;
        @include background_color("background_color5");
        font-size: 32px;
        font-family: $t-f;
        font-weight: 600;
        @include font_color("font_color1");
        line-height: 60px;
        margin-top: 69px;
      }
      .list {
        .listtop {
          display: flex;
          align-items: center;
          justify-content: space-between;
          height: 40px;
          font-size: 28px;
          font-family: $t-f;
          font-weight: 600;
          color: #616161;
          line-height: 40px;
          padding: 0 52px;
          margin: 25px auto;
          .sort {
            width: 56px;
          }
        }
        .items {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 0 52px;
          margin: 25px auto;
          .sord {
            font-size: 28px;
            font-family: $t-f;
            font-weight: bold;
            @include font_color("font_color1");
            line-height: 32px;
            width: 56px;
            text-align: center;
          }
          .address {
            span {
              height: 32px;
              font-size: 28px;
              font-family: $t-f;
              font-weight: bold;
              @include font_color("font_color1");
              line-height: 32px;
              margin: 0 13px;
            }
            .fuzhi {
              background: transparent;
              border: none;
              width: 30px;
            }
            img {
              height: 30px;
              width: 28px;
            }
          }
          .num {
            font-size: 28px;
            font-family: $t-f;
            font-weight: bold;
            @include font_color("font_color1");
            line-height: 32px;
          }
        }
      }
      .buttombtn {
        margin: 15px auto 60px;
        width: 152px;
        height: 54px;
        background: #f3f3f3;
        // border-radius: 27px;
        transform: all 0.3;
        span {
          font-size: 28px;
          font-family: $t-f;
          font-weight: 600;
          color: #aaaaaa;
          line-height: 54px;
          margin: 0 10px;
        }
        img {
          width: 22px;
          height: 14px;
        }
        .sxz {
          transform: rotate(180deg);
        }
      }
    }
    .sbfg{
    //   border: 1px solid #381b7c;
    // background: url("../assets/img/abg.png") 100%/100% no-repeat;
    
background: linear-gradient(100deg, #dcc179 0, #603711 49%, #d5b96f 100%);
        display: flex;
    align-items: center;
    justify-content: space-between;
    height: 150px;
    .btn{
      display: flex;
      align-items: center;
      justify-content: flex-end;
        margin:  0 20px;
        min-width: 252px;
        height: 84px;
        line-height: 84px;
        //  background: linear-gradient(18deg, #ffdf2d, #00e2be);
        border: 1px solid #ffffff; 
        // border-radius: 70px;
        padding-left: 20px;
        font-weight: 600;
        font-family: $t-f;
        overflow: hidden;
        
        .she{
          height: 45px;
          width: 45px;
          margin: 0 30px;
        }
        .tnxt{
          color: #ffffff;
        font-family: $t-f;
        white-space: nowrap;
             font-size: 36px;
        }
    }
  }
   .card4 {
    width: 652px;
    // background: linear-gradient(18deg, #ffdf2d, #00e2be);
    // border-radius: 20px;
    background: #00000070;
    padding: 20px;
    margin: 20px auto;
border: 1px solid #381b7c;
    .yqlink {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      margin-top: 18px;
      .ltxt {
        font-size: 30px;
        font-family: $t-f;
        font-weight: 600;
        color: #ffffff;
        line-height: 42px;
      }
      .mylink {
        width: 440px;
        height: 60px;
        background: #f8f8f8;
        // border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 22px;
        .address {
          width: 250px;
          height: 32px;
          font-size: 22px;
          font-family: $t-f;
          font-weight: 600;
          color: #000000;
          line-height: 32px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .fuzhi {
          background: transparent;
          border: none;
          width: 50px;
        }
        .icon {
          width: 42px;
          height: 42px;
        }
      }
    }
    .tips {
      font-size: 24px;
      font-family: $t-f;
      font-weight: 400;
      color: #ffffff;
      line-height: 34px;
      text-align: left;
      margin: 22px 0 0;
    }
    .btns {
      width: 638px;
      height: 80px;
      background: #000000;
      // border-radius: 40px;
      font-size: 32px;
      font-family: $t-f;
      font-weight: 600;
      color: #ffffff;
      line-height: 80px;
      margin: 18px auto 20px;
    }
  }
    .more {
      width: 750px;
      margin: 0 auto;
      .txts {
        height: 56px;
        font-size: 40px;
        font-family: $t-f;
        font-weight: 600;
       color: #fff;
        line-height: 56px;
        margin: 54px auto;
      }
     .qblist {
        display: flex;
        flex-wrap: wrap;
        margin: 15px;
        .icons {
          width: calc(50% - 32px);
          background: #262626;
          // box-shadow: 0px 4px 16px 8px rgba(227,224,224,0.5);
          // border-radius: 7px;
          // border-radius: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: row;
          margin: 16px;
          img {
            width: 84px;
            height: 84px;            
            padding: 16px;
          }
          span {
            height: 44px;
            font-size: 22px;
            font-family: $t-f;
            font-weight: 600;
            color: #ffffff;
            line-height: 44px;
            cursor: pointer;
            flex: 1;
            text-align: left;
            margin-left: 10px;
          }
        }
      }
    }
    .buttoms {
      height: 28px;
      font-size: 24px;
      font-family: $t-f;
      font-weight: bold;
      color: #999999;
      line-height: 28px;
      margin: 80px auto 80px;
      
    }
  }
 

  .popup {
    width: 672px;
    background: #ffffff;
    // border-radius: 30px;
        padding: 30px 30px 40px;
        box-sizing: border-box;
    ::v-deep.van-list{
      height: 50vh;
    overflow: auto;
    }
    ::v-deep .van-stepper__input{
          font-size: 42px;
        }
   
    .tips{
      font-size: 28px;
      font-family: $t-f;
      font-weight: 600;
      color: #999999;
      line-height: 66px;
      margin: 24px auto;
    }
    .inode {
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      align-items: center;
      background: #f1f1f1;
      // border-radius: 8px;
      margin: 8px 34px;
      padding: 20px 8px;
      font-weight: 400;
      font-size: 28px;
      font-family: $t-f;
      .items{
         display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
      .line{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 10px ;
        flex: 1;
        .left {
        text-align: left;
          font-size: 22px;
          font-family: $t-f;
          font-weight: 400;
          color: #999;
          line-height: 32px;
      }
      .right {
        font-size: 22px;
        font-family: $t-f;
        font-weight: 600;
        color: #131415;
        line-height: 32px;
      }
      }}
      .fuzhi {
        background: transparent;
        border: none;
        color: #1755ee;
      }
    }
    .input {
      border: none;
      width: 70%;
      height: 50px;
      background: #f8f8f8;
      // border-radius: 50px;
      margin: 10px auto;
      padding: 10px 20px;
      font-size: 28px;
      // background: transparent;
      
    }
    .bg{
       background: linear-gradient(234deg,#e4005e, #b4184c);
        margin: 20px 34px;
       padding:10px;
       
    // border-radius: 20px;
       
    }
    .logo{
      // height:188px;
      width: 188px;
      margin: 44px auto 20px;
    }
    .item {
     display: flex;
     align-items: center;
     justify-content: space-between;
       background:#262626;
      //  border-radius: 10px;
    padding: 0 10px;
      .txts {
        font-size: 32px;
        font-family: $t-f;
        text-align: right;
        margin: 10px 0;
    font-weight: bold;
    line-height: 54px;
     background: linear-gradient(234deg,#e4005e, #b4184c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .flexs{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px 0;
      
        .tts{
           font-size: 28px;
          font-family: $t-f;
          font-weight: 600;
          @include font_color("font_color1");
          line-height: 40px;
          text-align: left;
          margin: 0 10px ;
          
        }
      }
      .txd{
        margin: 20px 0;
        text-align: left;
        font-size: 24px;
        font-family: $t-f;
        font-weight: 600;
        color: #f8f8f8;
        line-height: 40px;
      }
      .inputs {
        border: none;
        height: 50px;
        width: 100%;
        font-size: 34px;
        font-family: $t-f;
      }
    }
    .txt {
      font-size: 28px;
      font-family: $t-f;
      font-weight: 400;
      @include font_color("font_color1");
      line-height: 40px;
      margin: 10px 106px;
      text-align: left;
    }
      .top{
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 32px;
            .close{
                width:28px;
            }
             .title{
            width: 100%;
            font-size:32px;
            font-weight: bold;
            color: #000000;
            text-align: left;
           
        }
        }
         .sqtxts{
      font-size: 24px;
      font-family:$t-f;
      font-weight: 600;
      color: #848484;
      line-height: 44px;
      margin: 10px 0 45px;
      padding: 0 22px;
      box-sizing: border-box;
      text-align: left;
    }
    .sqtxt{
      font-size: 32px;
      font-family:$t-f;
      font-weight: 600;
      color: #848484;
      line-height: 44px;
      margin: 10px 0 45px;
      padding: 0 22px;
      box-sizing: border-box;
    }
    .xbox{
       background: #F3F0F4;
            padding: 10px 20px;
            border-radius: 36px;
             display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 16px auto;
              .num{
          //  margin: 22px auto;
        font-size: 24px;
        font-family: $t-f;
        font-weight: bold;
          background: linear-gradient(34deg, #1fa391, #28514b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        }
            .txt{
              color: #2A2A2A;
                font-size: 24px;
                font-weight: bold;
                margin:  0 10px;
            }
    }
    .rbox{
            display: flex;
            align-items: center;
            justify-content: center;
           
            .num{
          //  margin: 22px auto;
        font-size: 42px;
        font-family: $t-f;
        font-weight: bold;
          background: linear-gradient(234deg, #106156, #cc1d1d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        }
            .txt{
              color: #2A2A2A;
                font-size: 24px;
                font-weight: bold;
                margin:  0 10px;
            }
            .ico{
              width: 40px;
              height: 40px;
            }
          }
    .flsz{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .cnet{
      text-align: center;
      font-size: 46px;
    }
    .btn {
     width: calc(100% - 200px);
      height: 80px;
      font-size: 32px;
      font-family: $t-f;
      font-weight: 600;
      color: #ffffff;
      line-height: 80px;
      margin: 54px auto;
background: linear-gradient(90deg, #F83AFD 0%, #C333FF 31%, #A84BFF 49%, #724EFF 79%, #495AFA 100%);
box-shadow: 0px 4px 16px 4px rgba(207,182,247,1);
border-radius: 40px;
border: none;
  display: flex;
      align-items: center;
      justify-content: center;
    }
     .btns {
      width: 480px;
      height: 80px;
      font-size: 32px;
      font-family: $t-f;
      font-weight: 600;
      color: #ffffff;
      line-height: 80px;
      margin: 54px auto;
background: linear-gradient(90deg, #F83AFD 0%, #C333FF 31%, #A84BFF 49%, #724EFF 79%, #495AFA 100%);
box-shadow: 0px 4px 16px 4px rgba(207,182,247,1);
// border-radius: 40px;
border: none;
  display: flex;
      align-items: center;
      justify-content: center;
    }
    .nbtn{
      width: 100%;
      height: 80px;
box-shadow: 0px 4px 16px 4px rgba(227,211,253,1);
// border-radius: 40px;
border: 2px solid rgba(115, 40, 236, 0.5);
font-size: 32px;
font-family: $t-f;
margin: 54px 20px;
font-weight: 600;
color: #b4184c;
line-height: 44px;
  display: flex;
      align-items: center;
      justify-content: center;
    }
    .lang {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 50px auto;
      img {
        height: 50px;
        width: 50px;
      }
      span {
        font-size: 28px;
        font-family: $t-f;
        font-weight: 400;
        @include font_color("font_color1");
        line-height: 40px;
      }
    }
 
  }
 
  .flexbottom{
    position: fixed;
    bottom: 0;
    width: 750px;
    height: 160px;
    background: linear-gradient(18deg, #ffdf2d, #00e2be);
    z-index: 99;
    // border-radius: 50% 50% 0 0;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .txt{
    font-size: 28px;
    font-weight: 600;
    font-family: $t-f;
    line-height: 42px;
    }
  }
   .infos{
        font-size: 28px;
        font-weight: 600;
        font-family: $t-f;
        text-align: justify;
        background: #000000;
        display: flex;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
      .video{
        width: 100%;
        height: 100vh;
      }
      }
}
</style>
